package com.xianrenit.xianrenpuzi.cart.client;

import com.xianrenit.xianrenpuzi.model.entity.h5.CartInfo;
import com.xianrenit.xianrenpuzi.model.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "service-cart")
public interface CartClient {
    @GetMapping("/api/order/cart/auth/checkedCartInfos")
    public Result<List<CartInfo>> checkedCartInfos();

    @Operation(summary = "删除购物车选中购物项")
    @DeleteMapping("/api/order/cart/auth/delCheckedCartInfos")
    public Result delCheckedCartInfos();
}
